@font-face {
    font-family: 'futura_bold';
    src: url('../fonts/Futura/futura-bold-webfont.woff2') format('woff2'),
         url('../fonts/Futura/futura-bold-webfont.woff')  format('woff'),
         url('../fonts/Futura/futura-bold-webfont.ttf')   format('truetype');
    font-weight: bold;
    font-style: normal;

}

@font-face {
    font-family: 'futura';
    src: url('../fonts/Futura/futura-book-webfont.woff2') format('woff2'),
         url('../fonts/Futura/futura-book-webfont.woff')  format('woff'),
         url('../fonts/Futura/futura-book-webfont.ttf')   format('truetype');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'futura_light';
    src: url('../fonts/Futura/futurabt-light-webfont.woff2') format('woff2'),
         url('../fonts/Futura/futurabt-light-webfont.woff2') format('woff'),
         url('../fonts/Futura/futurabt-light-webfont.ttf')   format('truetype');
    font-weight: normal;
    font-style: normal;

}

body {
    font-family: 'futura', Arial, sans-serif;
    margin:0;
    padding:0;
    color: #262626;
    background-color: #f4f4f4;
    overscroll-behavior: none;
}

h1 {
    color: #262626;
    font-size: 90px;
    text-align: left;
    font-family: 'futura_bold';
}

h2 {
    color: #262626;
    font-size: 56px;
    text-align: left;
    font-weight: 700;
}

h3 {
    color:     #262626;
    font-size:   36px;
    text-align:  Left;
    font-weight: 500;
}

h4 {
    color: #262626;
    font-size: 28px;
    text-align: Left;
    font-weight: 300;
}

p {
    color: #262626;
    font-size: 20px;
    text-align:left;
    font-weight: 300;
}

caption {
    color:     #262626;
    font-size:   16px;
    text-align:  Left;
    font-weight: 300;
}

b{
    font-family: futura_bold;
}

ul{
    list-style-type: none;
    padding:0;
    margin:0;
}

li{
    color: #262626;
    font-size: 16px;
    text-align: left;
    font-weight: 300;
    margin-top:0;
    margin-bottom:0;
}

button {
    padding: 20px;
    color: #f4f4f4;
    align-items: center;
}

.bold{
    font-weight: 600;
}

.home_page_subheadings {
    margin:      0 auto 0 auto;
    max-width:   1200px;
    width:       100%;
    font-family: futura_bold;
}

.landing{
    display:         flex;
    flex-direction: column;
    justify-content: center;
    margin: 5em auto 10em auto;
    max-width:       1200px;
    position:        relative;
}

.landing_about{
    width: 100%;
}

.landing_name{
    line-height: 85%;
    width:       100%;
    margin-top:  0;
}

.landing_info {
    position: static;
    margin-top: 40px;
    margin-bottom: 0;
}

.landing_about h3{
    color: #787878;
}

.landing_description{
    width: 100%;
    word-wrap: normal;
}

.logo{
    width: 75px;
    height: 75px;
    border-radius:5px;
    margin-bottom: 5em;
}

/* I DESIGN SECTION */
.i_design_section {
    margin:                 2em auto 0 0;
    max-width:              1200px;
}

.i_design_section h4 {
    display: inline;
    margin-right: 0.3em;
}

#typewriter {
    color: #262626;
    font-size: 28px;
    text-align: left;
    font-weight: 300;
}

#typewriter::after {
  content: "|";
  animation: blink 1s infinite;
  margin-left: 4px;
  display: inline-block;
}

@keyframes blink {
  66%           { opacity: 1; }
  0%, 33%, 100% { opacity: 0; }
}

/*
 * PROJECT GRID SECTION STYLES
 */
.projects{
    margin:                 0 auto 5em auto;
    max-width:              1200px;
    display:                grid;
    grid-template-columns:  repeat(3, 1fr);
    column-gap:             100px;
    row-gap:                0;
}

.project_cover_button{
    /* Ensure that all items maintain a 1x1 aspect ratio */
    aspect-ratio:   1 / 1;
    width:          100%;
    border:         none;
    box-sizing:     border-box;
    object-fit:     cover;
    display:        block;
    padding:        0;
    background-color: transparent;
    border-radius: 0.5em;

    position: relative;
    overflow: hidden;
    outline: none;  
}

.project_cover_image{
    /* Ensure that all items maintain a 1x1 aspect ratio */
    aspect-ratio:  1 / 1;
    width:         100%;
    border-radius: 5px;
    position:      relative;
    background-color: transparent;
}

.project_cover_title_background{
    position:absolute;
    bottom: 0;
    left: 0;
    right:0;
    opacity: 0;
    background-color: transparent;
}

.title_container {
    display:flex;
    flex-direction: row;
    width: 100%;
}

.project_title_text{
    margin: 1em;
    text-align: center;
    width: 100%;
}

/*
 * ABOUT SECTION
 */
.about_section{
    width: 100%;
    height: 550px;
    max-width: 1200px;
    margin: 2em auto auto auto;
    display: flex;
    align-items: center;
}

.about_image_container{
    aspect-ratio: 1/1;
    height: 100%;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.carousel_image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel_image.active{
    opacity: 1;
}

.carousel_dots{
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot{
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active{
    background-color: rgba(255, 255, 255, 1);
}

.about_description_container{
    width: 100%;
    height: 100%;
    position: relative;
    margin-left: 100px;
}

.about_description_container h4 {
    margin-top :   0;
    margin-bottom: 0.5em;
}

.about_description_container ul {
    list-style-type: disc; 
    list-style-position: inside;
    margin-left: 1em;
}

.about_description_container li{
    font-size: 20px;
}

.socials{
    width:             100%;
    height:            40px;
    display:           flex;
    justify-content:   space-between;
    flex-wrap:         wrap;

    position:          absolute;
    bottom:            0;
}

.social_icon_container{
    display: flex;
    gap: 1em;
    height: 100%;
}

.social_link {
    height: 100%;
}

.social_icon{
    height:             100%;
    aspect-ratio:       1 / 1;
    border-radius:      5px;
    background-color: #262626;
}

/*
 * RESUME BUTTON
 */

/* DOWNLOAD CV BUTTON */
.download_cv_button {
    background-color: #262626;
    height: 100%;
    border-radius: 5px;
    border: 0;
    align-items: center;
    display: flex;
    cursor: pointer;
    text-decoration: none;
    width: 55%;
}

.download_cv_button_text {
    color:#f4f4f4;
    width: 100%;
    text-align: center;
    font-size: 16px;
}

/* FOOTER STYLE*/
.footer{
    margin:5em auto 5em auto;
    text-align: center;
    color: #787878;
}

/* 
 * HOVER EFFECTS
 */
.project_cover_button:hover{
    cursor: pointer;
    background-color: #eaeaea;
}

.project_cover_image:hover + .project_cover_title_background{
    opacity: 1;
    z-index: 2;
}

.quit_button:hover{
    transform: scale(1.2);
}

/* MODEL STYLES */
.project_container{
    background: #f4f4f4;
    border-radius: 10px;

    /* Size Constraints */
    max-width: 1200px;
    width: 100%;
    max-height: 70vh;
    height: 100%;

    border: none;
    padding: 5em;

    position: relative;
    margin: 0, auto;

    
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    

    /*scolling and layering*/
    overflow-y: auto;
    z-index: 10;
    scrollbar-width: none;
}

.project_hero{
    width: 100%;
    border-radius: 5px;
}

.project_title{
    margin-top: 1em;
    margin-bottom: 0;
}

.project_title h1 {
    margin: 0;
}

.project_information{
    margin-top: 0;
    margin-bottom:0;
}

.project_sub_heading {
    width: 100%;
    height: fit-content;
    margin: 0;
    line-height: 0;
}

.project_sub_heading h3{
    display: inline-block;
    margin-right: 3em;
}

.project_tools{
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(5, auto);
    column-gap: 20px;
    list-style-type: none;
}

.project_image_grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows:repeat(4, 1fr);
    gap: clamp(0.5rem, 2%, 1rem);
    aspect-ratio: 1;
    width: 100%;
}

.project_image{
    width: 100%;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
    object-fit: cover;
    object-position: center;

    position: absolute;
}

.grid_item {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
    object-fit: cover;
    object-position: center;

    position: relative;
}

.grid_item p {
    color: #f4f4f4;
    font-weight: 800;
    background-image: linear-gradient(0deg, rgba(38, 38, 38, 0.50), rgba(38, 38, 38, 0.0));
    z-index: 20;
    position: absolute;
    bottom: 0;
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 0.3em;
}

.project_text{
    width: 100%;
    height: 100%;
    border-radius: 5px;
    display: block;
    margin: 0;
    display: flex;
    align-items: center;

}

.project_video{
    width:  100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
    display: block;
}

#span1x1{
    grid-column: span 1;
    grid-row: span 1;
}

#span1x2{
    grid-column:span 1;
    grid-row:span 2;
}

#span2x1{
    grid-column: span 2;
    grid-row: span 1;
}

#span2x2{
    grid-column: span 2;
    grid-row: span 2;
}

#span3x2{
    grid-column:span 3;
    grid-row:span 2;
}

#span3x1{
    grid-column:span 3;
    grid-row:span 1;
}

#span4x1{
    grid-column:span 4;
    grid-row:span 1;
}

.project_footer{
    width:100%;
    height:fit-content;
    text-align: center;
    margin:5em 0 5em 0;
}

.close_dialog_button_container {
    position: absolute;
    
    margin-top: clamp(0.5rem, 2%, 1rem);
    margin-bottom: 2em;

    left: 50%;
    transform: translate(-50%);

    height: 2em;
    width: 15em;
}

.close_dialog_button {
    background-color: #262626;
    border-radius: 5px;
    border: none;
    color: #f4f4f4;
    text-align: center;
    cursor: pointer;
    height: 100%;
    width: 100%;
    font-size: 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

::backdrop{
    background: #26262675;
}

body {
  &:has(dialog[open]) {
    overflow: hidden;
  }
}


/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    /* Typography adjustments */
    h1 {
        font-size: 56px;
    }
    
    h2 {
        font-size: 36px;
    }
    
    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 20px;
    }

    h5 {
        font-size: 14px;
    }

    li {
        font-size: 16px !important;
    }

    p {
        font-size: 16px;
    }

    caption {
        font-size: 12px;
    }
    
    /* Landing section */
    .landing {
        margin-top: 2em;
        margin-bottom: 5em;
        height: auto;
        padding: 0 20px;
    }
    
    .landing_name {
        line-height: 100%;
    }
    
    .landing_description {
        margin-top: 30px;
        margin-left: 0;
        max-width: 100%;
        position: static;
    }
    
    .landing_info {
        position: static;
        margin-top: 30px;
    }

    .home_page_subheadings {
        margin-left: 20px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    /* Project grid - single column */
    .projects {
        margin: 2em 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project_cover_button {
        background-color: #eaeaea;
    }

    .project_cover_title_background {
        opacity: 1;
    }
    
    /* About section */
    .about_section {
        flex-direction: column;
        height: fit-content;
        padding: 0 20px;
        max-width: calc(100vw - 3.5em);
    }

    .i_design_section {
         max-width: calc(100vw - 3.5em);
         margin-bottom: 0;
    }
    
    #typewriter {
        font-size: 20px;
    }
    .about_image_container {
        width: 100%;
        height: 450px;
        aspect-ratio: auto;
        margin-bottom: 30px;
    }
    
    .about_description_container {
        margin-left: 0;
        width: 100%;
        margin-bottom: 1em;
    }
    
    .project_tools {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        grid-auto-flow: row;
    }

    .socials {
        width:             100%;
        height:            auto;
        display:           flex;
        justify-content:   space-between;
        flex-wrap:         wrap;

        position:          relative;
        bottom:            0;
        }
    
    .download_cv_button {
        background-color: #262626;
        height: 100%;
        border-radius: 5px;
        border: 0;
        align-items: center;
        display: flex;
        cursor: pointer;
        text-decoration: none;
        width: 40%;
        }

    .get_in_touch_text {
        text-align: left;
        align-items: center;
        height: fit-content;
        padding: 0;
    }

    .social_icon_container{
        display: flex;
        gap: 20px;
        width: auto;
        height: 100%;
    }

    .social_icon {
        width: 3em;
        aspect-ratio: 1 / 1;
    }

    /* DOWNLOAD CV BUTTON */
    .download_cv_button {
        height: 3em;
        min-width: 30%;
    }

    .download_cv_button h4 {
        color:#f4f4f4;
        width: 100%;
        text-align: center;
}
    
    /* Project modals */
    .project_container {
        width: 80dvw;
        padding: 2em 1.5em;
        max-height: 80dvh;
    }
    
    .project_title {
        height: auto;
        margin-bottom: 20px;
    }
    
    .project_information {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .project_image_grid {
        display: flex;
        flex-direction: column;
    }

    .project_image {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
    }
    
    .close_dialog_button_container {
        padding-bottom: 1em;
        min-height: 30px;
    }
}

/* ================================================ */
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) and (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 3.5em;
    }
    
    h2 {
        font-size: 28px;
    }
    
    /* Landing section */
    .landing {
        margin-top: 3em;
        height: auto;
        margin-bottom: 3em;
        padding: 0 30px;
    }
    
    .landing_about {
        height: auto;
        position: static;
        transform: none;
        display: block;
        padding-top: 80px;
    }
    
    .landing_description {
        margin-top: 40px;
        margin-left: 0;
        max-width: 100%;
        position: static;
    }
    
    .landing_info {
        position: static;
        margin-top: 40px;
    }

    .home_page_subheadings {
        margin-left: 30px;
    }

    .i_design_section {
         max-width: calc(100vw - 6em);
    }

    #typewriter {
        font-size: 28px;
    }
    
    /* Project grid - 2 columns */
    .projects {
        margin: 3em 30px;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .project_cover_button {
        background-color: #eaeaea;
    }

    .project_cover_title_background {
        opacity: 1;
    }
    
    /* About section */
    .about_section {
        flex-direction: column;
        height: auto;
        padding: 0 30px;
        max-width: calc(100vw - 4.5em);
    }
    
    .about_image_container {
        width: 100%;
        height: 400px;
        aspect-ratio: auto;
        margin-bottom: 40px;
    }
    
    .about_description_container {
        margin-left: 0;
        width: 100%;
    }
    
    .project_tools {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .socials {
        position: static;
        margin-top: 40px;
    }
    
    /* Project modals */
    .project_container {
        width: 85dvw;
        padding: 3em 2em;
        max-height: 80dvh;
    }
    
    .project_information {
        grid-template-columns: 1fr;
    }
    
    .project_image_grid {
        display: flex;
        flex-direction: column;
    }

    .project_image {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
    }

    .close_dialog_button_container {
        padding-bottom: 2em;
        min-height: 30px;
    }
}

/* ================================================ */
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 991px) {

    /* Landing section */
    .landing {
        margin-top: 4em;
        padding: 0 40px;
        max-height:      700px;
        height:          700px;
    }
    
    .landing_about {
        height: auto;
        position: static;
        transform: none;
        display: flex;
        flex-wrap: wrap;
        padding-top: 100px;
    }
    
    .landing_name {
        width: 100%;
    }
    
    .landing_description {
        margin-top: 40px;
        margin-left: 0;
        position: static;
    }
    
    .landing_info {
        position: static;
        margin-top: 40px;
        width: 100%;
    }

    .home_page_subheadings {
        margin-left: 40px;
    }
    
    /* Project grid - 2 columns */
    .projects {
        margin: 4em 40px;
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .project_title_text {
        line-height: 100%;
    }

    .project_cover_button {
        background-color: #eaeaea;
    }

    .project_cover_title_background {
        opacity: 1;
    }
    
    /* About section */
    .about_section {
        flex-direction: column;
        height: auto;
        max-width: calc(100vw - 6em);
    }

    .i_design_section {
         max-width: calc(100vw - 6em);
    }
    
    .about_image_container {
        width: 100%;
        height: 500px;
        aspect-ratio: 1 / 1;
        margin-bottom: 50px;
    }
    
    .about_description_container {
        margin-left: 0;
        width: 100%;
    }
    
    .socials {
        position: static;
        margin-top: 50px;
    }
    
    /* Project modals */
    .project_container {
        width: 85dvw;
        height: 80dvh;
        padding: 4em 3em;
    }
    
    .project_title {
        font-size: 2em;
        line-height: 85%;
    }

    .project_image_grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows:repeat(4, 1fr);
    }

    .close_dialog_button_container {
        padding-bottom: 2em;
        min-height: 30px;
    }
}

/* ================================================ */
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .landing {
        max-width:       960px;
        max-height:      600px;
        height:          600px;
    }

    .home_page_subheadings {
    max-width:   960px;
    }
    
    .projects {
        max-width: 960px;
        grid-template-columns: repeat(3, 1fr);
    }

    .about_section {
        max-width: 960px;
        height: 650px;
    }

    .project_cover_title_background {
        opacity: 1;
    }

    .project_cover_button{
    background-color: #eaeaea;
}
    
    .footer {
        margin: 3em 0;
        padding: 0 20px;
    }

    .i_design_section {
    max-width:              960px;
    }

    .about_image_container {
        width: 50%;
        height: 100%;
    }
    
    .about_description_container {
        margin-left: 60px;
    }

    .socials {
        margin: 2em 0;
        gap: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .get_in_touch_button {
        width: 40%;
        height: 3em;
        align-items: center;
        justify-content: left;
        padding-right: 1.5em;
    }

    .get_in_touch_text {
        text-align: center;
        align-items: center;
        height: fit-content;
        padding: 0;
        width: 100%;
    }

    .get_in_touch_icon {
        height: 80%;
        align-items: center;
        padding: 0.5em;
    }
    
    .social_icons_container {
        gap: 5px;
    }

    .social_icon {
        height: 3em;
    }
    
    .project_container {
        max-width: 900px;
        width: 85dvw;
    }
    
    .project_image_grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

/* ================================================ */
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    /* Default desktop styles apply */
    .landing {
        max-width: 1200px;
    }
    
    .projects {
        max-width: 1200px;
    }
    
    .about_section {
        max-width: 1200px;
    }
    
    .project_container {
        max-width: 1200px;
    }
}